//

import UIKit

class CZDiscoverTableViewController: CZVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if isLogin {
            tabBarItem.badgeValue = "99+"
        } else {
            //  未登录
            visitorView?.updateVisitorInfo("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imageName: "visitordiscover_image_message")
        }
        setUpHeadView()
    }
    
    private func setUpHeadView() {
        let searchView = CZDiscoverSeachView.searchView()
        //设置xib的宽度
        searchView.width = self.view.width
        navigationItem.titleView = searchView
        
        
    }
}








